package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class SexPresenter : BasePresenter<SexContract.Model, SexContract.View>(), SexContract.Presenter {

    override fun createModel(): SexContract.Model? = SexModel()

    override fun updateSex(userUuid: String, sex: Int) {
        mModel?.updateSex(userUuid, sex)?.ss(mModel, mView) {
            mView?.updateSexSuccess(success = true)
        }
    }
}